package net.maku.propagate.vo;

import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import io.swagger.v3.oas.annotations.media.Schema;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import net.maku.framework.common.utils.DateUtils;
import net.maku.system.entity.SysOrgEntity;

import java.util.Date;
import java.util.List;

/**
* 新闻资讯
*
* @author 阿沐 babamu@126.com
* @since 1.0.0 2025-03-16
*/
@Data
@Schema(description = "新闻资讯")
public class PropagateNewsVO extends VisibleOrgBaseVO implements Serializable, TransPojo {
	private static final long serialVersionUID = 1L;

	@Schema(description = "id")
	private Long id;

	@Schema(description = "封面图")
	private String surfacePlot;

	@Schema(description = "工会ID")
	@Trans(type = TransType.SIMPLE, target = SysOrgEntity.class, fields = "name", ref = "orgName")
	private Long orgId;

	@Schema(description = "工会名称")
	private String orgName;

	@Schema(description = "内容标题")
	private String title;

	@Schema(description = "内容类型")
	private Integer contentType;

	@Schema(description = "发布内容")
	private String contents;

	@Schema(description = "浏览量")
	private Integer pageView;

	@Schema(description = "是否置顶")
	private Integer topOrNot;

	@Schema(description = "审核通过时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date auditTime;

	@Schema(description = "发布状态  0：停用   1：正常")
	private Integer status;

	@Schema(description = "租户ID")
	private Long tenantId;

	@Schema(description = "版本号")
	private Integer version;

	@Schema(description = "删除标识  0：正常   1：已删除")
	private Integer deleted;

	@Schema(description = "创建者")
	private Long creator;

	@Schema(description = "创建时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date createTime;

	@Schema(description = "更新者")
	private Long updater;

	@Schema(description = "更新时间")
	@JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
	private Date updateTime;


}